home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10029 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.tcd.ie!mdennehy
  3. From: mdennehy@tcd.ie (Sparks)
  4. Subject: Calling <windows.h>CreateThread(...) from within a CWinApp object.
  5. Message-ID: <Dnt4xw.ML0@news.tcd.ie>
  6. Summary: How to call a function from within an object when it has the same name 
  7. Keywords: MFC,VC++
  8. Sender: usenet@news.tcd.ie (TCD News System )
  9. Organization: University of Dublin, Trinity College
  10. Date: Tue, 5 Mar 1996 18:34:37 GMT
  11.  
  12. For a Simple/SML compiler/simulator I am writing for a project, I decided
  13. to have the simulator run as a seperate thread so that an infinite loop in
  14. the generated code would not lock the machine inconviently. However, when 
  15. calling CreateThread() from within the CWinApp object, it does not appear to 
  16. be able to see the <windows.h> version of the function, ie. the compiler
  17. does not appear to be able to use the declerations of the functions to 
  18. seperate the two in a call, as I had thought it could.  I am using 
  19. VC++ v2.0 with v3.0 of the MFC library, running on Windows NT.
  20.  
  21. Has anyone got any suggestions, either as to the source of the problem,
  22. or a possible cure ?
  23. Thank you...
  24.  
  25. --
  26. Mark "Sparks" Dennehy        Ham Radio : EI5EDB (2m FM only) :-(
  27. Engineering Undergrad        Internet  : mdennehy@tcd.ie
  28. Trinity College Dublin        
  29.